//-----------------------------------------------------------------------
// <copyright file="a_SEO_ContentService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_SEO_ContentService
    {
        #region a_SEO_Content

        public static void Createa_SEO_Content(a_SEO_Content a_SEO_Content)
        {            
            try
            {
                a_SEO_ContentDAO a_SEO_ContentDAO = new a_SEO_ContentDAO();
                a_SEO_ContentDAO.Createa_SEO_Content(a_SEO_Content);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_SEO_Content(a_SEO_Content a_SEO_Content)
        {            
            try
            {
                a_SEO_ContentDAO a_SEO_ContentDAO = new a_SEO_ContentDAO();
                a_SEO_ContentDAO.Updatea_SEO_Content(a_SEO_Content);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_SEO_Content(int sid)
        {            
            try
            {
                a_SEO_ContentDAO a_SEO_ContentDAO = new a_SEO_ContentDAO();
                a_SEO_ContentDAO.Deletea_SEO_Content(sid);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_SEO_Content Geta_SEO_Content(int sid)
        {            
            try
            {
                a_SEO_ContentDAO a_SEO_ContentDAO = new a_SEO_ContentDAO();
                return a_SEO_ContentDAO.Geta_SEO_Content(sid);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public static a_SEO_Content Geta_SEO_ContentByCatSub(int CatSubId)
        {
            try
            {
                a_SEO_ContentDAO a_SEO_ContentDAO = new a_SEO_ContentDAO();
                return a_SEO_ContentDAO.Geta_SEO_ContentByCatSub(CatSubId);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public static a_SEO_ContentCollection Geta_SEO_ContentList(a_SEO_ContentColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_SEO_ContentDAO a_SEO_ContentDAO = new a_SEO_ContentDAO();
                return a_SEO_ContentDAO.Geta_SEO_ContentList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_SEO_ContentCollection Geta_SEO_ContentList(a_SEO_ContentColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_SEO_ContentDAO a_SEO_ContentDAO = new a_SEO_ContentDAO();
                return a_SEO_ContentDAO.Geta_SEO_ContentList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion

        public static a_SEO_Content Geta_SEO_ContentListByCatMainAndCatSub(int catMainID, int catSubID)
        {
            try
            {
                a_SEO_ContentDAO a_SEO_ContentDAO = new a_SEO_ContentDAO();
                return a_SEO_ContentDAO.Geta_SEO_ContentListByCatMainAndCatSub(catMainID, catSubID);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}